//
//  fourth2ViewController.m
//  豆瓣综合网页
//
//  Created by dllo on 16/1/3.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "fourth2ViewController.h"
#import "LTView.h"
#import "fourth1ViewController.h"
@interface fourth2ViewController ()

@end

@implementation fourth2ViewController
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    UIBarButtonItem *fourthItem = [[UIBarButtonItem alloc] initWithTitle:@"用户登录" style:(UIBarButtonItemStylePlain) target:self action:@selector(fourthItem:)];
    self.navigationItem.leftBarButtonItem = fourthItem;
    UIBarButtonItem*four2thItem =[[UIBarButtonItem alloc] initWithTitle:@"注册" style:(UIBarButtonItemStylePlain) target:self action:@selector(fourth2thItem:)];
    self.navigationItem.rightBarButtonItem = four2thItem;
    self.view.backgroundColor = [UIColor whiteColor];
    LTView *name = [[LTView alloc] initWithFrame:CGRectMake(20, 100, 350, 50)];
    name.myLabel.text = @"用户名";
    name.myTextField.placeholder = @"请输入用户名";
    [self.view addSubview:name];
    LTView *code = [[LTView alloc] initWithFrame:CGRectMake(20, 160, 350, 50)];
    code.myLabel.text = @"密码";
    code.myTextField.placeholder = @"请输入密码";
    [self.view addSubview:code];
    LTView *recode = [[LTView alloc] initWithFrame:CGRectMake(20, 220, 350, 50)];
    recode.myLabel.text = @"确认密码";
    recode.myTextField.placeholder = @"再次输入密码";
    [self.view addSubview:recode];
    LTView *mail = [[LTView alloc] initWithFrame:CGRectMake(20, 280, 350, 50)];
    mail.myLabel.text = @"邮箱";
    mail.myTextField.placeholder = @"请输入邮箱";
    [self.view addSubview:mail];
    LTView *phone = [[LTView alloc ]initWithFrame:CGRectMake(20, 340, 350, 50)];
    phone.myLabel.text = @"联系方式";
    phone.myTextField.placeholder = @"请输入联系方式";
    [self.view addSubview:phone];
    
}

- (void)fourthItem:(UIBarButtonItem *)item {

    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}
- (void)fourth2thItem:(UIBarButtonItem *)item {
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
